#ifndef _CAS9_H_
#define _CAS9_H_
#include "../Conax_mmi.h"
#include <api/libcas/mcas.h>

#define MAX_SESSION_NUM     2
#define MAX_DMX_NUM         3

void ca_get_card_info(struct init_info *card_info);
UINT16 ca_get_dsc_pid(UINT8 *pid_list, UINT16 pid_number);
UINT16 ca_get_dsc_pid_multi_des(UINT16 *pid_list, UINT16 pid_number,UINT32 prog_id);
void conax_remove_mutex();
void ca_set_playback_status(BOOL is_playback);
INT32 conax_sto_byte( UINT32 offset, UINT8 *data, INT32 len);
UINT8 *ca_get_finger_info_addr();
UINT8 *ca_get_finger_info_addr_multi_des(UINT8 index);
UINT8 *ca_get_host_msg_info_addr(UINT8 slot_index);
INT32 ca_set_prog_info(ca_service_info *info);


BOOL ca_is_card_inited();
UINT16 ca_get_ts_stream_id();
UINT8 *ca_get_mail_ini_flg();
UINT32 ca_get_sto_msg_addr();

/****************************************************
* name 			:UINT16 api_get_keystore_key_num()
* description		:get key num of the keystore
* parameter		:none
* return		:0xff	:keystore not init
				:0x00	:no key
				:>0x00	:key num of the keystore
				
******************************************************/
UINT16 api_get_keystore_key_num();


#endif

